const global = {
    namespaced:true,
    state:{
        //定义使用的数据
        globalData:'global的数据',
        patchArray:[],      //存储路径，用来做面包屑显示
        // lockScreenData:sessionStorage.getItem("lockScreenDataSess") == null ? false : sessionStorage.getItem("lockScreenDataSess"),
        lockScreenData:false,
    },
    mutations:{
        //对数据进行操作
        // aaFunction(state,val){}
        patchArrayFunction(state,val){
            state.patchArray = val
            state.globalData = 'aa'+new Date()
            console.log(state.patchArray,val)
        },
        lockScreenFunction(start,val){
            // this.sessionStorage.setItem('lockScreenDataSess',val)
            start.lockScreenData = val
        }
    },
    getters(){},
    actions(){}
}


export default global